import Pie from './Pie';
import Columnar from './Columnar';
import Line from './Line';
export default function Index(props: any) {
    const { type } = props;
    const GlobalComponent: any = {
        pie: () => <Pie {...props} />,
        columnar: () => <Columnar {...props} />,
        line: () => <Line {...props} />,
    };
    return GlobalComponent[type]();
}
